package com.aaa.mapper;

import com.aaa.entity.PrivateMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bean
 * @since 2021-09-05
 */
public interface PrivateMessageMapper extends BaseMapper<PrivateMessage> {

 //添加私信
 Integer add(PrivateMessage privateMessagea);
 //查询私信列表
 List<Map<String,Object>> seleinform(Integer uid);
 //查询某一个私信
 List<Map<String,Object>> seleone(@Param("uid") Integer uid,@Param("id") Integer id);

 //修改状态
 Integer updastate(Integer id,Integer state);
}
